//
//  receiveFirendBeCare.m
//  tcpoctest
//
//  Created by gump on 6/14/13.
//  Copyright (c) 2013 gump. All rights reserved.
//

#import "receiveFirendBeCare.h"

#import "CareDataSource.h"
#import "taskDataSource.h"

#import "sendMessageReceipt.h"

@implementation receiveFirendBeCare

-(void)processreceive
{
    //被关注用户收到 返回 12char(1),3char(1),
    //发起关注用户的用户名长度char(1),
    //发起关注用户的用户名char(x),消息ID长度char(1),
    //消息ID长度char(x)
    
    NSString *carename = [logicsb ReadUnencodeString];
    
    if (![[DataControl shareControl].becareds IsShowArrContainsObject:carename])
    {
        [[DataControl shareControl].becareds InSertShowArrObject:carename withIndex:0];
        
        [[DataControl shareControl].UICommendDS addUICommand:UI_ADDFIRENDSUCCESS];
    }
    
    [[DataControl shareControl].taskDS CompleteTaskByID:TI_F_BECARE
     withIsDirectShow:false];
    
    NSString *strid = [logicsb ReadUnencodeString];
    [[netManager sharedNetManager].sendMsgReceipt SendMegReceipt:strid];
}

@end
